package com.atguigu.lease.web.admin.service;

import com.atguigu.lease.model.entity.ApartmentInfo;
import com.atguigu.lease.web.admin.vo.apartment.ApartmentDetailVo;
import com.atguigu.lease.web.admin.vo.apartment.ApartmentItemVo;
import com.atguigu.lease.web.admin.vo.apartment.ApartmentQueryVo;
import com.atguigu.lease.web.admin.vo.apartment.ApartmentSubmitVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @Author: 李壮
 * @CreateTime: 2025-05-07
 * @Version: 1.0
 */
public interface ApartmentService extends IService<ApartmentInfo> {

    //保存或更新公寓信息
    void saveOrUpdateApartment(ApartmentSubmitVo apartmentSubmitVo);

    //根据条件分页查询公寓列表
    IPage<ApartmentItemVo> pageApartmentItemByQuery(IPage<ApartmentItemVo> page, ApartmentQueryVo apartmentQueryVo);

    //根据ID获取公寓详细信息
    ApartmentDetailVo getApartmentDetailByid(Long id);

    //根据ID删除公寓信息
    void removeAparymentById(Long id);
}
